<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title></title>
		<link rel="stylesheet" href="__OEM__/css/iconfont.css" />
		<link rel="stylesheet" href="__OEM__/css/css.css" />
	</head>

	<body>
		{include file="public/header" /}
		<div class="index_conbox">
			<div class="index_content clearfix">
				{include file="public/lefter" /}
				<div class="right">
					<div class="rigtop">
						<span class="title">账户中心</span>
					</div>
					<div class="indrig_con" style="position: relative;">
						<div class="zizh_btnbox" style="top: -88px; right: 20px;">
							<button class="zizh_btn" type="button" onclick="show_agent()">修改信息</button>
						</div>
						<!--基本信息内容-->
						<div class="shxx_list">
							<div class="shxx_item">
								<div class="shxx_title">基本信息</div>
								<div class="shxx_jibbox clearfix">
									<div class="shxx_jbleft">
										<div class="shxx_row clearfix">
											<div class="left">系统角色</div>
											<div class="right">
												<p><em>
								                {switch name="$data.user_level"}
											    {case value="1"}jmsb{/case}
											    {case value="2"}运营商{/case}
											    {default /}服务商
												{/switch}
								                </em>(<em>
								                {switch name="$data.user_type"}
											    {case value="1"}系统管理员{/case}
											    {case value="2"}管理员{/case}
											    {default /}财务
												{/switch}
								                </em>)</p>
											</div>
										</div>
										<div class="shxx_row clearfix">
											<div class="left">用户帐号</div>
											<div class="right">
												<p><em>{$data.mobile}</em></p>
											</div>
										</div>
										<div class="shxx_row clearfix">
											<div class="left">用户地址</div>
											<div class="right">
												<p><em>{$data.addres}</em></p>
											</div>
										</div>
										{if $data.user_type == 1}
										<div class="shxx_row clearfix">
											<div class="left">帐户余额</div>
											<div class="right">
												<p><em>{$data.balance}元</em>
													<a href="javascript:;" onclick="yue_tixian()" class="edit">提现</a>
													<a href="{:url('index/yue_record')}" class="green">记录</a>
												</p>
											</div>
										</div>
										
											<div class="shxx_row clearfix">
												<div class="left">帐户佣金</div>
												<div class="right">
													<p><em>{$data.commission}元</em>
														<a href="javascript:;" onclick="yongj_yue()" class="edit">转余额</a>
														<a href="{:url('index/yongj_record')}" class="green">记录</a>
													</p>
												</div>
											</div>
										
											<div class="shxx_row clearfix">
												<div class="left">帐户鼓励金</div>
												<div class="right">
													<p><em>{$data.score}元</em>
														<!--<a href="javascript:;" onclick='glj_recharge()' class="edit">充值</a>-->
														<a href="javascript:;" onclick="glj_exchange()" class="edit">兑现</a>
														<a href="javascript:;" onclick="glj_zz()" class="edit">转账</a>
														<a href="{:url('index/glj_record')}" class="green">记录</a>
													</p>
												</div>
											</div>
											<div class="shxx_row clearfix">
												<div class="left">认证状态</div>
												<div class="right">
													<p><em>
									                	{switch name="$data.is_verify"}
														    {case value="1"}已认证{/case}
														    {case value="2"}待审核{/case}
														    {case value="3"}已驳回<a href="{:url('index/renzheng')}" class="edit">去认证</a>{/case}
														    {default /}未认证<a href="{:url('index/renzheng')}" class="edit">去认证</a>
														{/switch}
									                </em></p>
												</div>
											</div>
										{/if}
									</div>
									<div class="shxx_jbright">
										<p class="shxx_xmimg">
											{if condition="$data.logo == null"}
											<img src="__LOGO__/1/logomr.png"> {else /}
											<img src="{$data.logo}"> {/if}
										</p>
										<p class="shxx_xmnam">{$data.project_name}</p>
										<p class="shxx_xminfo">{$data.web_url}</p>
									</div>
								</div>
							</div>
							<div class="shxx_item">
								<div class="shxx_title">账号安全设置</div>
								<div class="shxx_row clearfix">
									<div class="left">登录密码</div>
									<div class="right">
										<p><em>用于登录时使用</em>
											<a href="javascript:;" onclick="return_password()" class="edit">重置</a>
										</p>
									</div>
								</div>
							</div>
							<div class="shxx_item">
								{if $data['user_level'] == 3}
									<div class="shxx_title">所属运营中心</div>
								{else $data['user_level'] == 2}
									<div class="shxx_title">所属服务商</div>
								{/if}
									<div class="shxx_row clearfix">
										<div class="left" style="width: 130px;">{$data1.user_name}</div>
									</div>
									<div class="shxx_title">联系电话</div>
									<div class="shxx_row clearfix">
										<div class="right">
											<p><em>{$data1.mobile}</em></p>
										</div>
									</div>
								
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		{include file="public/footer" /}
	</body>

</html>

<script>
	function yongj_yue() {
		layer.open({
			type: 2,
			title: '佣金转余额',
			shadeClose: true,
			shade: 0.8,
			area: ['500px', '250px'],
			content: "{:url('index/yongj_yue')}"
		});
	}
	function glj_recharge() {
		layer.open({ 
			type: 2,
			title: '鼓励金充值',
			shadeClose: true,
			shade: 0.8,
			area: ['240px', '270px'],
			content: '{:url("index/yue_score")}'
		});
	}
	function glj_exchange() {
		layer.open({
			type: 2,
			title: '鼓励金兑现',
			shadeClose: true,
			shade: 0.8,
			area: ['500px', '250px'],
			content: "{:url('index/glj_exchange')}"
		});
	}
	function glj_zz() {
		layer.open({
			type: 2,
			title: '鼓励金转账',
			shadeClose: true,
			shade: 0.8,
			area: ['500px', '450px'],
			content: "{:url('index/glj_zz')}"
		});
	}
	function yue_tixian() {
		layer.open({
			type: 2,
			title: '余额提现',
			shadeClose: true,
			shade: 0.8,
			area: ['500px', '400px'],
			content: "{:url('index/yue_tixian')}"
		});
	}

	function return_password() {
		layer.open({
			type: 2,
			title: '重置登录密码',
			shadeClose: true,
			shade: 0.8,
			area: ['500px', '250px'],
			content: "{:url('index/return_password')}"
		});
	}

	function return_operationpwd() {
		layer.open({
			type: 2,
			title: '重置操作密码',
			shadeClose: true,
			shade: 0.8,
			area: ['500px', '250px'],
			content: "{:url('index/return_operationpwd')}"
		});
	}

	function show_agent() {
		layer.open({
			type: 2,
			title: '修改信息',
			shadeClose: true,
			shade: 0.8,
			area: ['500px', '450px'],
			content: "{:url('index/show_agent',['id'=>session('d_id')])}"
		});
	}
</script>